		<div class="row">
		    <div class="col-xs-12">
		        <div class="box box-primary">
		            <div class="box-header">
		                <h3 class="box-title">Tambah Data Obat/ABHP Pada <i> <?php echo $ppk['ppk']; ?> </i></h3>
		            </div><!-- /.box-header -->
		            <?php echo form_open('obat/save', array('role' => 'form', 'id' => 'form'));?>
		            <div class="box-body">				        
	                    <!-- text input -->
	                    <div class="form-group">
	                        <label>Kategori</label>
	             			&nbsp;&nbsp;<input type="radio" name="kat" value="Obat" checked="">Obat
                    		&nbsp;&nbsp;<input type="radio" name="kat" value="ABHP">ABHP</br>
	                    </div>
	                    <div class="form-group">
	                        <label>Kode Obat/ABHP</label>
	                        <input type="hidden" name="kd_ppk" value="<?php echo $ppk['kd_ppk'] ?>">
	                       	<input class="form-control input-sm" name="kd_obat" type="text" placeholder="Kode obat/ABHP">
	                    </div>
	                    <div class="form-group">
	                        <label>Obat/ABHP</label>
	                       	<input class="form-control input-sm" name="obat" type="text" placeholder="Nama obat/ABHP">
	             
	                    </div>
	                    <div class="form-group">
	                        <label>Jenis Obat/ABHP</label>
	                       	<select class="form-control input-sm" name="jenis_obat">
	                       		<?php 
	                       			foreach ($jenis_obat as $value) { ?>
	                       				<option value="<?php echo $value['kd_jenis_obat'] ?>"><?php echo $value['jenis_obat'];?></option>
	                       		<?php		
	                       			}
	                       		?>
	                       	</select>

	                    </div>
	                    <div class="form-group">
	                        <label>Harga</label>
	                       	<input class="form-control input-sm" name="harga" type="text" placeholder="Harga obat">
	             
	                    </div>
	                    <div class="form-group">
	                        <label>Satuan</label>
	                       	<input class="form-control input-sm" name="satuan" type="text" placeholder="Satuan obat">
	             
	                    </div>
	                    <div class="form-group">
	                        <label>Merk</label>
	                       	<input class="form-control input-sm" name="merk" type="text" placeholder="Merk obat">
	             
	                    </div>
	                    
	                    
	                    
		            </div>		                   
                    <div class="box-footer">
                         <button type="submit" class="btn btn-sm btn-primary btn-flat"><i class="fa fa-floppy-o"></i> Simpan</button>
                    </div>
								<?php echo form_close();?>
		        </div><!-- /.box -->                            
		    </div>
		</div>

		<script>
		$("#form").validate({
			rules: {
				
				kd_obat: {
					required: true
				},
				obat: {
					required: true
				},
				harga: {
					required: true,
					number:true
				},
			}
		});
		</script>